/// 动态数据模型
class DynamicPrint {
  final String id;
  final String userId; // 发布者ID
  final String title; // 动态标题
  final String content; // 动态内容文字
  final List<String> mediaUrls; // 图片或视频URL列表
  final String mediaType; // 'image' 或 'video'
  final List<String?> thumbnailUrls; // 视频封面图URL列表，与mediaUrls一一对应（仅视频类型，图片为null）
  final DateTime createdAt; // 创建时间
  final List<String> likes; // 点赞用户ID列表
  final List<DynamicComment> comments; // 评论列表

  DynamicPrint({
    required this.id,
    required this.userId,
    required this.title,
    required this.content,
    required this.mediaUrls,
    required this.mediaType,
    required this.thumbnailUrls,
    required this.createdAt,
    required this.likes,
    required this.comments,
  });
}

/// 动态评论数据模型
class DynamicComment {
  final String id;
  final String userId; // 评论者ID
  final String content; // 评论内容
  final DateTime createdAt; // 创建时间

  DynamicComment({
    required this.id,
    required this.userId,
    required this.content,
    required this.createdAt,
  });
}
